package com.bjsxt.usersCenter.back.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.springframework.http.HttpRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.bjsxt.usersCenter.common.controller.BaseController;

@Controller
@RequestMapping("/back/admins/")
public class AdminsBackController extends BaseController
{
	@RequestMapping("/main")
	public String main()
	{
		return "/back/admins/main";
	}
	@RequestMapping("/left")
	public String leftMenu(HttpServletRequest request)
	{
		String left=(String) request.getParameter("left");
		request.setAttribute("left", left);
		return "/back/admins/leftMenu";
	}
	@RequestMapping("/loginout")
	public String loginout(HttpSession session,HttpServletRequest request)
	{
		session.removeAttribute("admins");
		session.removeAttribute("lastLoginTime");
		
		this.info="成功退出";
		request.setAttribute("info",info);
		return "/back/login";
	}
	
	
}
